package com.spr.gw.mapper;

import com.spr.gw.entity.Message;
import com.spr.gw.entity.VO.MessageVo;
import org.springframework.stereotype.Component;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@org.apache.ibatis.annotations.Mapper
@Component
public interface MessageMapper extends Mapper<Message> {

    List<MessageVo> selectMessageVo(MessageVo message);

    List<MessageVo> selectByCategoryId(Message mess);

    List<MessageVo> selectPictureMessage(List<String> ids);

    Message getOneMessageByCategoryId(Integer categoryId);
}